class AppTimer
{
public:
	AppTimer();

	float TotalTime() const; //in seconds
	float DeltaTime() const; //in seconds

	void Reset();  //before msg looop
	void Start(); //call when unpaused
	void Stop();  //call when paused
	void Tick();  //each frame

private:
	double mSecondsPerCount;
	double mDeltaTime;

	__int64 mBaseTime;
	__int64 mPausedTime;
	__int64 mStopTime;
	__int64 mPrevTime;
	__int64 mCurrTime;

	bool mStopped;
};